package jjn.effective_java.chapter6.item34;

/**
 * @author Jiang Jining
 * @since 2023-04-26 23:08
 */
public class OperationTest {
    public static void main(String[] args) {
        double first = Double.parseDouble(args[0]);
        double second = Double.parseDouble(args[1]);
        for (OperationV2 operation : OperationV2.values()) {
            System.out.printf("%f %s %f = %f%n", first, operation, second, operation.apply(first, second));
        }
    }
}
